package com.thirdgroup.dao.impl;

import com.thirdgroup.dao.base.BaseDAO;
import com.thirdgroup.dao.BusinessCustomerIndustryDao;
import com.thirdgroup.pojo.BusinessCustomerIndustry;
import com.thirdgroup.utils.DruidLocalUtil;

import java.sql.Connection;
import java.util.List;

/**
 * @BelongsProject: gxa-thrid-team
 * @BelongsPackage: com.thirdgroup.dao
 * @Author: ZYS
 * @CreateTime: 2024-05-08  11:31
 * @Description: TODO
 */
public class BusinessCustomerIndustryDaoImpl extends BaseDAO<BusinessCustomerIndustry> implements BusinessCustomerIndustryDao {
    @Override
    public List<BusinessCustomerIndustry> selectAllIndustry() {
        Connection connection = DruidLocalUtil.getConnection();
        String sql = "select * from business_customer_industry";
        return findAll(sql);
    }
}
